﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TotalPlanAdd.aspx.cs" Inherits="TotalPlan_TotalPlanAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加总表计划</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        function userinfo(str)
            {
                window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300'); 
            }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
        </asp:ScriptManager>
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td class="firstbjcolor" colspan="8" style="height: 14px;">
                        <span class="currentHere">当前位置:总表计划管理-&gt;添加总表计划</span></td>
                </tr>
                <tr>
                    <td style="height: 1; width: 100%;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                        height: 30px;" class="tdControlRow">
                        年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                            OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                        </asp:DropDownList>
                        部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin"
                            AutoPostBack="True" OnSelectedIndexChanged="drpDepartment_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" AutoPostBack="True" SkinID="checkboxSkin"
                            Height="20px" OnCheckedChanged="ckbAllSelect_CheckedChanged" />
                        <asp:Button ID="btnSave" runat="server" Text="保存" Width="60px" SkinID="buttonSkin"
                            OnClick="btnSave_Click"  />
                        <asp:Button ID="btnOK" runat="server" Text="提交" Width="60px" SkinID="buttonSkin"
                            OnClick="btnOK_Click" OnClientClick="return confirm('确认要提交吗？');" /></td>
                </tr>
                <tr>
                    <td colspan="8">
                        <div style=" height: 15px; width: 98.1%" id="Div1">
                            <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                                width="100%">
                                <tr style="background-color: #ffffff;">
                                    <td align="center" class="PlanModifyTableHeader" style="width: 5%; height: 14px"
                                        valign="middle">
                                        选择</td>
                                    <td align="center" class="PlanModifyTableHeader" style="width: 10%; height: 14px"
                                        valign="middle">
                                        计划编号</td>
                                    <td align="center" class="PlanModifyTableHeader" style="width: 35%; height: 14px"
                                        valign="middle">
                                        计划内容</td>
                                    <td class="PlanModifyTableHeader" style="width: 20%; height: 14px;" valign="middle"
                                        align="center">
                                        完成时间</td>
                                       
                                    <td align="center" class="PlanModifyTableHeader" style="width: 20%; height: 14px"
                                        valign="middle">
                                        责任人</td>
                                    <td align="center" class="PlanModifyTableHeader" style="width: 10%; height: 14px"
                                        valign="middle">
                                        处理</td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <div style="overflow-y: scroll; height: 500px; width: 100%" id="dvBody">
                            <asp:GridView ID="gdvTotalPlan" runat="server" AutoGenerateColumns="False" Width="98.1%"
                                SkinID="gridviewSkin" DataKeyNames="VerifyCircuitId,TotalPlanId,Source,WorkItemAdditional"
                                ShowHeader="False" OnRowDataBound="gdvTotalPlan_RowDataBound">
                                <Columns>
                                    <asp:TemplateField HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ckbSelect" runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle Width="5%" />
                                        <HeaderStyle Width="5%" />
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="计划编号" DataField="TotalPlanSortId">
                                        <ItemStyle Width="10%" />
                                        <HeaderStyle Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="计划内容" DataField="WorkItem">
                                        <ItemStyle Width="35%" />
                                        <HeaderStyle Width="35%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="完成时间" DataField="CompleteTime" DataFormatString="{0:yyyy-MM-dd}">
                                        <ItemStyle Width="20%" />
                                        <HeaderStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="责任人" DataField="MasterPeople">
                                        <ItemStyle Width="20%" />
                                        <HeaderStyle Width="20%" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" SkinID="buttonSkin"
                                                Text="删除" />
                                        </ItemTemplate>
                                        <ItemStyle Width="10%" />
                                        <HeaderStyle Width="10%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="VerifyCircuitId" HeaderText="VerifyCircuitId" Visible="False" />
                                    <asp:BoundField DataField="Source" HeaderText="Source" Visible="False" />
                                    <asp:BoundField DataField="TotalPlanId" HeaderText="TotalPlanId" Visible="False" />
                                    <asp:BoundField DataField="WorkItemAdditional" />
                                </Columns>
                            </asp:GridView>
                            <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                                width="98.1%">
                                <tr style="height: 50px; background-color: #ffffff;">
                                    <td align="center" style="width: 5%; height: 50px" valign="middle">
                                    </td>
                                    <td align="center" style="width: 10%; height: 50px;" valign="middle">
                                        <asp:TextBox ID="txtStrategicPlanSortId" runat="server" Width="90%"></asp:TextBox></td>
                                    <td style="width: 35%; height: 50px;" valign="middle" align="center">
                                        <asp:TextBox ID="txtPlanContent" runat="server" TextMode="MultiLine" Width="98%"></asp:TextBox></td>
                                    <td style="width: 20%; height: 50px;" valign="middle" align="center">
                                        
                                        <asp:TextBox ID="txtEndDay" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server" Width="90%"></asp:TextBox></td>
                                    <td style="width: 20%; height: 50px" align="center" valign="middle">
                                        <input id="txtMasterPeople" type="text" runat="server" style="width: 80%;" readonly="readOnly" /><a
                                            href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img alt="" src="../images/addpages.jpg"
                                                border="0" /></a></td>
                                    <td style="width: 10%; height: 50px" align="center">
                                        <asp:Button ID="btnAdd" runat="server" SkinID="buttonSkin" Text="确定" OnClick="btnAdd_Click" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
